package exercise2;

import java.util.Scanner;

public class Exercise02_13 {
    public static void main(String []args)
    {
        System.out.println("Enter the monthly saving amount: ");
        Scanner input=new Scanner(System.in);
        double money=input.nextDouble()*1.00417;

        int month=1;
        while (month<6)
        {
            money=(100+money)*(1+0.00417);
            month++;
        }
        System.out.println("After six months,the account is "+money);
    }
}
